<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<link rel="stylesheet" href="${staticServer}/inc/style/main.css"/>
	<link rel="stylesheet" href="${staticServer}/inc/style/page.css"/>
	<link rel="stylesheet" href="${staticServer}/css/work_today.css"/>
	<link href="${staticServer}/css/sweetalert.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="${staticServer}/common/uploadify/css/uploadify.css?1.3" type="text/css">
	<script src="${staticServer}/inc/js/jquery.js"></script>
	<script src="${staticServer}/inc/js/json.js"></script>
	<script src="${staticServer}/inc/js/pageset.js"></script>
	<script src="${staticServer}/inc/js/htmlfilter.js"></script>
	<script src="${staticServer}/inc/js/saver.js"></script>
	<script src="${staticServer}/inc/js/submitter.js"></script>
	<script src="${staticServer}/js/web/work_today.js?1.7"></script>
	<script src="${staticServer}/inc/js/infopad.js"></script>
	<script type="text/javascript" src="${staticServer}/common/uploadify/jquery.uploadify.js"></script>
	<script type="text/javascript" src="${staticServer}/js/web/uploadImg.js?1.4"></script>
	<script type="text/javascript" src="${staticServer}/common/js/easydialog.min.js"></script>
	<script type="text/javascript" src="${staticServer}/common/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="${staticServer}/common/js/jquery.selectui.js"></script>
	<script type="text/javascript" src="${staticServer}/common/js/sweetalert.min.js"></script>
	<script type="text/javascript" src="${staticServer}/common/js/sweetalert-dev.js"></script>
	<script type="text/javascript" src="${staticServer}/common/js/jquery.pagination.js"></script>
	<script type="text/javascript" src="${staticServer}/common/js/const.js"></script>
	<script type="text/javascript" src="${staticServer}/common/js/jquery.cookie.js"></script>
	
</head>

<script>
var date = "${date}"
var contextPath='${contextPath}';
var _contextPath = '${staticServer}';

function addFile(xlid){
$("#xlid").val(xlid);
easyDialog.open({
			container : 'add_course',
			fixed : true
		});
}
</script>

<body>
<input type="hidden" value="<#if work??>${work.id}</#if>">
	<div id="home_link">
		<ul>
			<li>竞思教育网络办公系统 v2.0 beta</li>
			<li>&gt;</li>
			<li>工作管理&gt;</li>
			<li class="current">今日工作记录（<a id="second" title="该倒计时结束时，将自动提交数据进行保存。"></a> 后自动保存）
			</li>
		</ul>
	</div>
	
	<div id="caption">
		<ul>
			<li><span class="title">操作提示：</span></li>
			<li>F8 增加记录</li>
			<li>F9 删除选中记录</li>
			<li>Ctrl+Enter 提交</li>
			<li>Ctrl+Shift+F 过滤当前单元格内容</li>
			<li>单击时间段选择时间</li>
		</ul>
	</div>
	
	<div id="container">
		<div id="title">今日工作记录（${time}&nbsp;星期${week}）<a title="当编辑区域失去焦点时，无法使用快捷键。必须单击工作记录的编辑区域才能获得焦点。">[ 快捷键：<span id="KEY_VAILABLE">不可用</span> ]
			</a>
		</div>
		<table id="__WORK_TABLE">
			<tr class="fields">
				<th width="30"></th>
				<th width="150">时间段</th>
				<th width="250">任务名称</th>
				<th>任务详情<em class="caption">(内容、完成情况、完成数量、如未完成预计完成时间)</em></th>
			</tr>
			<#if work??>
				<#list contentList as list>
					<tr>
						<td align="center" style="cursor:pointer;"><input type="checkbox"></td>
						<td rel="select_time" align="center"><span>${list.time}</span><p class="caption">总计 ${list.count} 小时 </p></td>
						<td><div contenteditable="true" onfocus="show_formater(this)">${list.title}</div></td>
						<td><div contenteditable="true" onfocus="show_formater(this)">${list.content}</div></td>
					</tr>
				</#list>
			<#else>
				<tr id="no-work">
					<td colspan="4">尚未开始填写工作日志，按 “F8” 键增加工作日志记录，并点击相应单元格开始编辑。</td>
				</tr>
			</#if>
		</table>
		<table>
			<tr class="fields">
				<th>工作记录相关配图<em class="caption">（双击可删除图片）</em></th>
			</tr>
			<tr>
				<td><a onclick="parent.img_open()">[ <b>从已上传的历史图片中选择</b> ]
					</a> <a onclick="">
					</a><em class="caption">（对于刚刚上传的新图片可以在此处找到）</em></td>
			</tr>
			<tr id="">
				<td>
					<ul class="imglist">
						<div id="images">
						<#if imgs??>
							<#list imgs as imgurl>
								<a href=""><li style="line-height:180px;*font-size:157px;"><img rel="800:485" width="180" height="109.125" src="http://www.yueqiao.org${imgurl}"></li>
							</#list>
						</#if>
						</div>
                        <a class="file_box" style="display: block; width:180px; height:180px; overflow: hidden; border: 1px solid #EBEBEB; background: none repeat scroll 0 0 #F3F3F3; color: #999999; cursor: pointer; text-align: center; margin-top:20px; margin-left:10px; ">
                        <em style="background:url(${staticServer}/img/add_newpic.png) 0 0; display: inline-block; width:180px; height:180px; overflow: hidden;line-height: 20em; vertical-align: middle;">
                        <input type="file" id="upload" style="display: block;width:180px; height:180px;opacity: 0; filter:alpha(opacity=0); "></em>
                        </a>
                    	<label class="zt_widthlabel" style=" font-size:9px; float:left; visibility:hidden;">文件：</label>
                        <input type="text" id="all_words" style=" width:100px; height:10px; float:left;visibility:hidden;" class="input w180" value="">
					</ul>
				</td>
			</tr>
		</table>
		<div id="controlbar">
			<input type="button" value="  保存日志记录  " onclick="buttonClickHandler(1)"/>
			<input type="button" value="  增加日志记录  "
				   onclick="buttonClickHandler(2)"/>
			<input type="button" value="  删除选中记录  " onclick="buttonClickHandler(3)"/>
		</div>
	</div>

	<div id="__CONTENT_TMP" style="display: none;"></div>
	<div id="__TIME_SELECTER">
		<table rel="nohover">
		</table>
	</div>
</body>
</html>